{extend name="base"}
{block name="title"}六位靓号查询{/block}
{block name="head"}{/block}
{block name="body"}
<body class="mainbody">
<form>
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i class="iconfont icon-up"></i><span>返回上一页</span></a>
  <a href="{:url('index/home')}" class="home"><i class="iconfont icon-home"></i><span>首页</span></a>
  <i class="arrow iconfont icon-arrow-right"></i>
  <span>六位靓号查询</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"><i class="iconfont icon-more"></i></a>
      <div class="l-list">
        <div class="menu-list">
          <div class="rule-single-select">
            <select name="zy" style="display:none">
              <option value="-1">==占用情况==</option>
              <option value="0"{eq name="zy" value="0"} selected{/eq}>[0]未占用</option>
              <option value="1"{eq name="zy" value="1"} selected{/eq}>[1]已占用</option>
            </select>
          </div>
          <div class="rule-single-select">
            <select name="at" style="display:none">
              <option value="-1">==账号类型==</option>
              {volist name="ACCOUNTS_TYPE" id="v"}
              <option value="{$key}"{eq name="at" value="$key"} selected{/eq}>[{$key}]{$v}</option>
              {/volist}
            </select>
          </div>
        </div>
        <div class="menu-list">
          <input type="text" class="input txt" autocomplete="off" name="search" value="{$search|default=''|htmlentities}" placeholder="支持六位靓号模糊查询" />
          <a class="btn-search"><i class="iconfont icon-search"></i></a>
        </div>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

{if condition="$at eq 3 "}
  <div class="table-container">
    <table class="border-table ltable" style="width:auto">
      <thead>
      <tr>
        <th>#</th>
        <th>六位靓号</th>
        <th>有无占用</th>
        <th>占用类型</th>
        <th>占用渠道</th>
        <th>占用用户/头像/注册时间</th>
      </tr>
      </thead>
      <tbody>
      {empty name="list"}
      <tr><td colspan="6">Oh~暂无数据!</td></tr>
      {else}
      {volist name="list" id="v"}
      <tr>
        <td>{$i}</td>
        <td>{$v.GameID}</td>
        <td style="color:{$v.UserID>0?'red':'green'}">{$v.UserID>0?'已占用':'未占用'}</td>
        <td>[{$v.UserID}].机器人</td>
        <td>--</td>
        <td class="user-avatar">
          <a target="_blank">
          <img src="{$v.HeadImgUrl?:'__STATIC__/houtai/images/dface.png'}" />
          </a>
          <div class="user-box">
            <h4>{gt name="v.UserID" value="0"}<a class="at_3" href="javascript:;">{:htmlentities($v.NickName)}</a>{/gt}</h4>
          </div>
        </td>
      </tr>
      {/volist}
      {/empty}
      </tbody>
    </table>
  </div>
{else/}

<div class="table-container">
  <table class="border-table ltable" style="width:auto">
    <thead>
      <tr>
        <th>#</th>
        <th>六位靓号</th>
        <th>有无占用</th>
        <th>占用类型</th>
        <th>占用渠道</th>
        <th>占用用户/头像/注册时间</th>
      </tr>
    </thead>
    <tbody>
{empty name="list"}
      <tr><td colspan="6">Oh~暂无数据!</td></tr>
{else}
  {volist name="list" id="v"}
      <tr>
        <td>{$i}</td>
        <td>{$v.GameID}</td>
        <td style="color:{$v.UserID>0?'red':'green'}">{$v.UserID>0?'已占用':'未占用'}</td>
        <td>{gt name="v.UserID" value="0"}[{$v.AccountsType}]{$ACCOUNTS_TYPE[$v.AccountsType] ?? '--'}{/gt}</td>
        <td>{gt name="v.UserID" value="0"}[{$v.Channel}]{$CHANNELS[$v.Channel]['Name'] ?? '--'}{/gt}</td>
        <td class="user-avatar">
          <a target="_blank"{gt name="v.UserID" value="0"} href="{:url('user.detail/index')}?UserID={$v.UserID}"{/gt}>
            <img src="{$v.HeadImgUrl?:'__STATIC__/houtai/images/dface.png'}" />
          </a>
          <div class="user-box">
            <h4>{gt name="v.UserID" value="0"}<a target="_blank" class="at_{$v.AccountsType}" href="{:url('user.detail/index')}?UserID={$v.UserID}">{:htmlentities($v.NickName)}</a>{/gt}</h4>
            <i>{$v.RegisterDate}</i>
          </div>
        </td>
      </tr>
  {/volist}
{/empty}
    </tbody>
  </table>
</div>
{/if}
<!--内容底部-->
<div class="page-footer"><div class="btn-wrap">{$list->render()}</div></div>
<!--/内容底部-->

</form>
</body>
{/block}